//获取商品列表金刚区
export const District = `
query{ 
  get_menu_list{
    name
	image
	page
  }
}`;
//获取首页商品
export const shops = `
query($lon:Float,$lat:Float,$page:Int){ 
  index_goods_list(lat:$lat,page:$page,lon:$lon){
    list{
        id
		name
		image
		subtitle
		dispatch_type
		starttime
		price
		oprice
		stock
		store_name
		store_id
		distance
    }
    total
    lastpage
  }
}`;
//获取当前城市
export const cityName = `
query($lon:Float,$lat:Float){ 
  get_city(lat:$lat,lon:$lon){
    code
	name
  }
}`;
//获取分类
export const classList = `
query{ 
  shop_goods_cate{
    id
	name
  }
}`;
//获取二级商品分类
export const goodsList = `
query($lon:Float,$lat:Float,$pid:Int){ 
  cate_goods_list(lat:$lat,lon:$lon,pid:$pid){
    id
	name
	list{
		id
		name
		image
		subtitle
		dispatch_type
		price
		oprice
		store_name
		distance
		store_id
	}
  }
}`;
//获取商品信息
export const shoppDetail = `
query($goods_id:Int){ 
  shop_goods_info(goods_id:$goods_id){
    id
	name
	images
	image
	subtitle
	dispatch_type
	price
	oprice
	distance
	content
  }
}`;
//获取店铺信息
export const shopp = `
query($lon:Float,$lat:Float,$store_id:Int){ 
  shop(lat:$lat,lon:$lon,store_id:$store_id){
    id
	name
	time
	address
	status
	distance
	image
	longitude
	latitude
	phone
  }
}`;
//获取购物车列表
export const carList = `
query($driver_id:Int){ 
  cart_goods_list(driver_id:$driver_id){
    store_id
    store_name
	goods_list{
		id
		name
		images
		image
		subtitle
		dispatch_type
		starttime
		price
		oprice
		stock
		goods_id
		goods_nums
		store_id
	}
  }
}`;

//获取下单页面
export const OrderList = `
query($order_id:Int){ 
  order_goods_info(order_id:$order_id){
    money
	yh_money
	pay_fee
	total_money
	goods_list{
		id
		name
		images
		image
		subtitle
		dispatch_type
		price
		oprice
		goods_nums
		store_name
	}
  }
}`;
//获取购物车数量
export const carNum = `
query($user_id:Int){ 
  cart_shopping_nums(user_id:$user_id){
    nums
  }
}`;
//获取商城商品列表
export const shoppList = `
query($store_id:Int,$lon:Float,$lat:Float,$page:Int){ 
  store_goods_list(store_id:$store_id,lat:$lat,lon:$lon,page:$page){
    total
	lastpage
	list{
		id
		name
		images
		image
		subtitle
		dispatch_type
		starttime
		price
		oprice
		stock
		distance
		store_id
		is_show
	}
  }
}`;

//获取商城订单页面
export const shopsOrder = `
query($driver_id:Int,$page:Int){ 
  user_order_list(driver_id:$driver_id,page:$page){
	list{
		id
		order_id
		type
		createtime
		item_id
		item_name
		pay_fee
		yh_money
		money
		item_id
		item_name  
		status_text
		goods_list{
			id
			name
			image
			status
		}
	}
	total
	lastpage
  }
}`;
//获取订单详情
export const orderDetail = `
query($order_id:Int){ 
  order_goods_info(order_id:$order_id){
    money
    yh_money
	pay_fee
	order_id
	order_sn
	createtime
	status
	total_money
	cha
	goods_list{
	  id
	  name
	  image
	  subtitle
	  store_id
	  price
	  oprice
	  starttime
	  dispatch_type
	  store_name
	  goods_nums
	}
  }
}`;